Skip to content

Undefined name: import random in Onepad_Cipher.py #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Undefined name: import random in Onepad_Cipher.py #339

merged 1 commit into from
Sep 28, 2018

Conversation

cclauss
Copy link
Member

@cclauss cclauss commented Sep 10, 2018

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.7.0

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1

These kind of errors should be automatically detected by #218

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1
```
@AnshulMalik AnshulMalik merged commit 3a77380 into TheAlgorithms:master Sep 28, 2018
@cclauss cclauss deleted the patch-5 branch September 28, 2018 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants